package com.study.modules.excel.esayExcel.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.houbb.sensitive.word.bs.SensitiveWordBs;
import com.study.common.utils.EasyExcelUtils;
import com.study.modules.excel.esayExcel.dao.TempEasyExcelDao;
import com.study.modules.excel.esayExcel.entity.TempEasyExcelEntity;
import com.study.modules.excel.esayExcel.service.TempEasyExcelService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

@Slf4j
@Service
public class TempEasyExcelImpl extends ServiceImpl<TempEasyExcelDao, TempEasyExcelEntity> implements TempEasyExcelService {

    public void importTempEasyExcel(MultipartFile file, Class<TempEasyExcelEntity> clazz, Integer headRowNumber) throws IOException {

    }

    public void exportTempEasyExcel(HttpServletResponse response) throws IOException {
        List<TempEasyExcelEntity> list = list();
        EasyExcelUtils.exportExcel(list, TempEasyExcelEntity.class, "用户数据", "用户工作簿", response);
    }

}
